$(function(){
	$('#glodon_error_dlg').on("show" , function( ){
		$(this).css({
        	left: ($(window).width() - $(this).width())/2,
        	top: 100
    	});
	}).draggable({
        containment: 'body',
        handle: '.modal-header'
    });
	$.ajaxSetup({
	    global:false,
	    error : function( xhr, textStatus, errorThrown ){
            $('#glodon_error_dlg').modal("show");
	        $('#glodon_error_dlg .modal-body').html( xhr.responseText );
	        $('#mask').hide();
	    }
	});
});